/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.entity;

import com.haulmont.cuba.core.entity.BaseUuidEntity;

import javax.persistence.*;

/**
 * Author: Sergey42
 * Date: 30.11.13 14:40
 */
@Table(name = "EXT_DEFENSE_DAY_STUDENT_LINK")
@Entity(name = "ext$DefenseDayStudentLink")
public class DefenseDayStudentLink extends BaseUuidEntity {

    private static final long serialVersionUID = -4982991136899185523L;

    @ManyToOne
    @JoinColumn(name = "DIPLOMA_STUDENT_ID")
    protected DiplomaStudent diplomaStudent;

    @ManyToOne
    @JoinColumn(name = "DEFENSE_DAY_ID")
    protected DefenseDay defenseDay;

    @Column(name = "SORT_ORDER")
    protected Integer sortOrder;

    public DiplomaStudent getDiplomaStudent() {
        return diplomaStudent;
    }

    public void setDiplomaStudent(DiplomaStudent diplomaStudent) {
        this.diplomaStudent = diplomaStudent;
    }

    public DefenseDay getDefenseDay() {
        return defenseDay;
    }

    public void setDefenseDay(DefenseDay defenseDay) {
        this.defenseDay = defenseDay;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
}
